// @ts-ignore
import ICON from "res://icon.png";
import BaseSprite from "./base_sprite";
export default class IconSprite extends BaseSprite {
    constructor() {
        super();
        this.texture = ICON;
        this.position = new godot.Vector2(this.x, this.y);
        this.testFun();
        this.testAttr();
    }
    testAttr() {
        // this.rotation = 1
        // this.rotation_degrees = 90
        // this.scale = new godot.Vector2(2,2);
        // this.z_as_relative = false
        console.log("位置->position", this.global_position, "local", this.position);
        console.log("旋转弧度->rotation", this.global_rotation, "local", this.rotation);
        console.log("旋转角度->rotation_degrees", this.global_rotation_degrees, "local", this.rotation_degrees);
        console.log("缩放->scale", this.global_scale, "local", this.scale);
        console.log("变换矩阵->transform", this.global_transform, "local", this.transform);
        console.log("z-index->z", this.z_index);
    }
    testFun() {
        // 位置
        // this.translate(new godot.Vector2(300,300))
        // this.global_translate(new godot.Vector2(100,100))
        // 旋转
        // this.rotate(godot.deg2rad(90))
        // this.look_at(new godot.Vector2(300,300))
        // let look = this.get_angle_to(new godot.Vector2(300,300))
        // this.rotate(look)
        // 缩放
        // this.apply_scale(new godot.Vector2(2,2))
        // 坐标转换 
        // to_local()
        // to_global()
    }
    _process(delta) {
        this.move_local_x(0.5);
        this.move_local_y(0.8);
    }
}
//# sourceMappingURL=icon_sprite.jsx.map